package com.wjq.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wjq.reggie.dto.DishDto;
import com.wjq.reggie.entity.Dish;

/**
 * @ProjectName: reggie_take_out
 * @Package: com.wjq.reggie.service
 * @ClassName: DishService
 * @Author: 10980
 * @Description: ${description}
 * @Date: 2022/8/22 15:31
 * @Version: 1.0
 */
public interface DishService extends IService<Dish> {
    //新增菜品，同时插入菜品对应的口味数据，需要操作两张表：dish,dish_flavor
    public void saveWithFlavor(DishDto dishDto);
    //根据id查询菜品信息和对应的口味信息
    public DishDto getByIdWithFlavor(Long id);

    public void updateWithFlavor(DishDto dishDto);
}
